package org.boz.dial;

public class LispLast extends LispObject {
	private LispObject m_code;
	private LispObject m_env;

	public LispObject eval(LispObject env) {
		throw new RuntimeException("eval should never be called on a LispLast");
	}

	public LispObject getCode() {
		return m_code;
	}

	public LispObject getEnv() {
		return m_env;
	}

	public String toString() {
		throw new RuntimeException("toString is invalid on LispLast");
	}

	public LispLast(LispObject code, LispObject env) {
		m_code = code;
		m_env = env;
		// System.out.println("Creating LispLast. m_code = " + code);
		// try {
		// throw new RuntimeException("last");
		// } catch ( Throwable e) {
		// e.printStackTrace();
		// }
	}
}
